﻿#include <sb.h>

int main(void)
{
	k_output_log_time(TRUE);
	k_mesg("OUTPUT REDIRECT TEST\n");
	k_output_redirect("d:\\output.txt");

	// format sequence test
	k_mesgf("'d -> %'d\n", 12345678);
	k_printf("!f  -> %f\n", 123456.99962);
	k_printf("!'f -> %'f\n", 123456.99962);
	k_printf("!g  -> %g\n", 123456.99962);
	k_printf("!e  -> %e\n", 123456.99962);
	printf("@f  -> %f\n", 123456.99962);
	printf("@g  -> %g\n", 123456.99962);
	printf("@e  -> %e\n", 123456.99962);

	// will be redirect with log time
	k_trace(KLV_ERROR, NULL, "this is error output test.");

	// system info
	kSysInfo si;
	k_siqm(&si);
	// will be redirect without log time
	k_sibf(&si);

	return 0;
}
